package com.bawei.a2209_mianshi.ui.login.view

import androidx.activity.viewModels
import androidx.fragment.app.activityViewModels
import androidx.fragment.app.viewModels
import com.bawei.a2209_mianshi.R
import com.bawei.a2209_mianshi.base.BaseFragment
import com.bawei.a2209_mianshi.databinding.FragmentSmsCodeBinding
import com.bawei.a2209_mianshi.ui.login.viewmodel.LoginViewModel


/**
 * @author yaotianxue
 * @description
 * @date 2025/5/13
 */
class SmsCodeFragment:BaseFragment<LoginViewModel,FragmentSmsCodeBinding>(){
    private val mViewModel:LoginViewModel by activityViewModels()
    override val mLayoutResId: Int
        get() = R.layout.fragment_sms_code

    override fun initView() {
        //设置当前正在显示的fragment
        mViewModel.setShowingFragmentTag(SmsCodeFragment::class.simpleName.toString())
    }
}

enum class SmsCode(val type: String) {
    LOGIN("login"), RESET("rest"), BIND("bind")
}